var map;

// use proxy if requesting features cross-domain
OpenLayers.ProxyHost = "/cgi-bin/proxy.cgi?url=";

function init() {

	var bounds = new OpenLayers.Bounds(
			-180, -90,
			180, 90
	);

	var options = {
		controls: [],
		maxExtent: bounds,
		maxResolution: 1.40625,
		projection: "EPSG:4326",
		units: 'degrees'
	};
	map = new OpenLayers.Map('map', options);

	Earth = new OpenLayers.Layer.WMS(
			"Natural Earth", 
			"http://demo.opengeo.org/geoserver/wms",
			{layers: "topp:naturalearth"}
	)

	tiled = new OpenLayers.Layer.WMS(
			"BirdLife Sample"
		, "http://birdlaa2.memset.net:8080/geoserver/wms"
		,	{
				filter: '(<Filter xmlns=\"http://www.opengis.net/ogc\"\><PropertyIsEqualTo\><PropertyName\>spcrecid</PropertyName\><Literal\>3353</Literal\></PropertyIsEqualTo\></Filter\>)'
			,	srs: 'EPSG:4326'
			,	layers: 'birdlife:gtbs'
			,	format: 'image/png'
			,	tiled: 'true'
			,	transparent: true
		}, {
				buffer: 0
			,	displayOutsideMaxExtent: true
		} 
	);
	
	map.addLayers([tiled, Earth]);

	// build up all controls            
	map.addControl(new OpenLayers.Control.PanZoomBar({
			position: new OpenLayers.Pixel(2, 15)
	}));
	map.addControl(new OpenLayers.Control.Navigation());
	map.zoomToExtent(bounds);

}